package com.algebra.activiti.web;

import com.algebra.activiti.util.WebApiResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author al
 * @date 2020/10/16 10:34
 * @description
 */
@RestController
@Slf4j
@Api(value = "Test", tags = "测试接口")
public class TestController {

    @ApiOperation("测试")
    @GetMapping("/test")
    public WebApiResult<String> test(@RequestParam("name") String name){
        log.info("测试接口，接受到参数：{}", name);
        return WebApiResult.ok(name);
    }

}
